<<<<<<< HEAD
=======
<<<<<<< HEAD
>>>>>>> 4d3f01ccf907a9f146177a7ad1ee5da07514cc1d
+#coding=utf-8
 2	+import re
 3	+# 1.使用正则表达式匹配电话号码：0713-xxxxxx(湖南省座机号码)
 4	+print(re.findall('^0713-+\d{6，8}',"0713-999997"))
 5	+print(re.search("07213-\d{6,8}".str1).group())
 6	+# 2.区号中可以包含()或者-,而且是可选的,就是说你写的正则表达式可以匹配
 7	+#    800-555-1212,555-1212,(800)555-1212
 8	+print(re.findall("\d{3}-\d{3}-\d{4}",'800-555-1212'))
<<<<<<< HEAD
 9	+print(re.findall("\d{3}-\d{3}-\d{4}",'(800)-555-1212'))
=======
 9	+print(re.findall("\d{3}-\d{3}-\d{4}",'(800)-555-1212'))
=======
#coding=utf-8
import re
# 1.使用正则表达式匹配电话号码：0713-xxxxxx(湖南省座机号码)
print(re.findall('^0713+-\d{6}',"0713-99999996669"))
# 2.区号中可以包含()或者-,而且是可选的,就是说你写的正则表达式可以匹配
#    800-555-1212,555-1212,(800)555-1212
print(re.findall("\d{3}-\d{3}-\d{4}",'800-555-1212'))
print(re.findall("\d{3}-\d{3}-\d{4}",'(800)-555-1212'))
>>>>>>> 978d2d22219d9f31cb064769a43a9ec237ac4b9d
>>>>>>> 4d3f01ccf907a9f146177a7ad1ee5da07514cc1d
